package com.zfzs.post.modules.transaction.repository;

import com.zfzs.post.modules.transaction.domain.BenefitInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author wq
* @date 2019-10-23
*/
public interface BenefitInfoRepository extends JpaRepository<BenefitInfo, Long>, JpaSpecificationExecutor {

    BenefitInfo findByBenefitIdAndTerminalTypeId(Long benefitId, Long sn);

    List<BenefitInfo> findByBenefitId(Long benefitId);
}